-module(msg_rec_reflect).
-author("admin").
-include("mod_info.hrl").
-export([rec_name/1, send_name/1, msg_id/1, pb_mod/1]).

rec_name(?c2s_login)->c2s_login;
rec_name(?c2s_select_player)->c2s_select_player;
rec_name(?c2s_create_player)->c2s_create_player;
rec_name(?c2s_delete_player)->c2s_delete_player;
rec_name(_)->undef.


send_name(?s2c_connect)->s2c_connect;
send_name(?s2c_login)->s2c_login;
send_name(?s2c_select_player)->s2c_select_player;
send_name(?s2c_create_player)->s2c_create_player;
send_name(?s2c_delete_player)->s2c_delete_player;
send_name(_)->undef.


msg_id(s2c_connect)->?s2c_connect;
msg_id(c2s_login)->?c2s_login;
msg_id(s2c_login)->?s2c_login;
msg_id(c2s_select_player)->?c2s_select_player;
msg_id(s2c_select_player)->?s2c_select_player;
msg_id(c2s_create_player)->?c2s_create_player;
msg_id(s2c_create_player)->?s2c_create_player;
msg_id(c2s_delete_player)->?c2s_delete_player;
msg_id(s2c_delete_player)->?s2c_delete_player;
msg_id(_)->undef.


pb_mod(1) -> system_pb;
pb_mod(_) -> system_pb.